package cn.kickegg.concurrent.threadpool;

import cn.kickegg.concurrent.thread.WukongThread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class ThreadPoolExample {

    public static void main(String[] args) {
        ExecutorService executorService= Executors.newFixedThreadPool(1);//构建 并且创建线程池赋值
        WukongThread thread=new WukongThread("T1");
        executorService.submit(thread);//execute方法

    }
}
